<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>校园综合服务系统</title>
    <head>
        <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.0.js"></script>
        <script>
            $(document).ready(function(){
                var urlParams = new URLSearchParams(window.location.search);

                var courseId = urlParams.get('courseId');
                var studentId = urlParams.get('studentId');
                $.get("http://localhost/edu/student/selected-info", {studentId: studentId, courseId: courseId}, function(response) {
                    var rs = $.parseJSON(response)
                    if (rs.code != "00000") {
                        alert("查看课程数据失败")
                    }
                    $("div.container").append("<p>课程名称：" + rs.data.courseName + "</p>")
                    $("div.container").append("<p>课程编号：" + rs.data.courseCode + "</p>")
                    $("div.container").append("<p>教师：" + rs.data.teacherRealname + "</p>")    
                    $("div.container").append("<p>学时数量：" + rs.data.sectionCount + "</p>")
                    $("div.container").append("<p>上课时间：" + rs.data.courseTime + "</p>")
                    $("div.container").append("<p>课程介绍：" + rs.data.courseProfile + "</p>")
                    $("div.container").append("<p>教材：" + rs.data.textbook + "</p>")    
                    $("div.container").append("<p>学分：" + rs.data.creditsCount + "</p>")
                    $("div.container").append("<p>考核满分：" + rs.data.allScore + "</p>")
                    $("div.container").append("<p>及格分数：" + rs.data.passScore + "</p>")
                    $("div.container").append("<p>我的分数：" + rs.data.myScore + "</p>")
                });
            });
        </script>
        </head>
    <style>
        .container {
            text-align: center;
        }
    </style>
</head>
<body>
    
    <a href="user_courses.html">我的课程</a><br>
    <a href="all_courses.html">选课</a><br>
    <a href="all_blogs.html">校园论坛</a><br>
    <a href="change_pwd.html">修改密码</a><br>
    <div class="container">    
        
    </div>
    


</body>
</html>